package pc29;

import java.util.Scanner;
public class J12Retangle {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Retangle r1 = new Retangle();
		System.out.println("width height 입력 : ");
		r1.width = sc.nextDouble();
		r1.height = sc.nextDouble();
		r1.color = sc.next();
		sc.close();
		
		System.out.println(r1.getArea());
		System.out.println(r1.getPerimeter());
		System.out.println(r1.getColor());

	}
}

class Retangle {
	double width;
	double height;
	double Area;
	double Perimeter;
	String color;
	
	String getColor(){
		return color;
	}

	double getArea() {
		Area = width * height;
		return Area;

	}

	double getPerimeter() {
		Perimeter = (width + height) * 2;
		return Perimeter;
	}

}
